package automat;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class JUnitTest {
	
	
	Billetautomat b;
	
	@Before
	public void setUp() throws Exception {
		b = new Billetautomat();
	}

	@Test
	public void testGetBilletpris() {
		b.montørLogin("1234");
		assertEquals(10,b.getBilletpris());
		//fail("Not yet implemented");
	}

	@Test
	public void testGetBalance() {
		b.indsætPenge(10);
		b.montørLogin("1234");
		assertEquals(10,b.getBalance());
		//fail("Not yet implemented");
	}

	@Test
	public void testGetTotal() {
		b.indsætPenge(10);
		b.udskrivBillet();
		b.montørLogin("1234");
		assertEquals(10,b.getTotal());
		//fail("Not yet implemented");
	}

}
